//
//  HelpTableViewCell.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/8.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "HelpTableViewCell.h"
@interface HelpTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

- (IBAction)changeAction:(UIButton *)sender;
@end
@implementation HelpTableViewCell

- (void)setHelpModel:(HelpModel *)helpModel{
    _helpModel = helpModel;
    _titleLabel.text= [NSString stringWithFormat:@"%@",helpModel.title];
    _contentLabel.text= [NSString stringWithFormat:@"%@",helpModel.content];
    
    
    
    
}

- (IBAction)changeAction:(UIButton *)sender {
    sender.selected = !sender.selected;
    self.helpModel.isSelect=sender.selected;
    if ([self.delegate respondsToSelector:@selector(changeBtnClick:)]) {
        [self.delegate changeBtnClick:self.helpModel];
    }
}
@end
